﻿var status = 0;
var ttt ="#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 ="#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 ="#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 ="#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 ="#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 ="#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 ="#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var aa9 ="#fEffect/ItemEff/1102491/effect/proneStab/0#";// 太阳效果

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
            cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
            cm.dispose();
        } 
    else if (status == 0) {
		var selStr = "\t\t\t"+aa9+"\r\n";
		selStr += "#r#L1#"+ttt6+" 普通传送#l    #L2#"+ttt6+" BOSS传送#l    #L3#"+ttt6+" 副本传送#l\r\n";
		selStr += "\r\n\r\n";
		selStr += "              #b#L0#"+ttt6+" 返回上一页#l\r\n";
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            cm.dispose();
            cm.openNpc(9310362);
            break;
		case 1:
			cm.dispose();
			cm.openNpc(1032005, "worldwarp");
			break;
		case 2:
			cm.dispose();
			cm.openNpc(2023000, "BOSSwarp");
			break;
		case 3:
			cm.dispose();
			cm.warp(910002000, 0);
			break;






}
    }
}